﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class back_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (txtUsername.Text.Trim().Equals(ConfigurationManager.AppSettings.Get("AdminUserName")) && txtPassword.Text.Trim().Equals(ConfigurationManager.AppSettings.Get("AdminPassword")))
        {
            Session["admin"] = txtUsername.Text.Trim();
            Response.Redirect("Dashboard.aspx");
        }
        else
        {
            return;
        }
    }
}